/*
 * @Description:
 * @Author: shilinzhou
 * @Date: 2024-01-24 19:06:55
 * @LastEditors: shilinzhou
 * @LastEditTime: 2024-03-25 15:59:57
 */
import QRequest from '@/service/index';
import { GanttParams, ganttDataResponse } from './model/type';
import { generateNameToLevel } from '@/config/constant';

/**
 * @: 获取设备甘特图列表
 * @param {GanttParams} params
 * @return {*}
 */
export const doGetGanttChartList = (params: GanttParams) => {
    return QRequest.get<ganttDataResponse>(`/ganttChartequipment/selectAll`, {
        params,
        headers: {
            loadingTarget: `#${generateNameToLevel('gantt')}`
        }
    });
};
